package com.dlnu.sujiwords.domain.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*复习表*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Review {
    /*用户id*/
    private Integer userId;
    /*单词本名称*/
    private Integer wordTable;
    /*复习单词*/
    private String word;
    /*翻译*/
    private String translation;
    /*掌握是否*/
    private Boolean master;

    public Review(Integer userId, Integer wordTable, String word, String translation, Byte master) {
        this.userId = userId;
        this.wordTable = wordTable;
        this.word = word;
        this.translation = translation;
        this.master = master==0?false:true;
    }
}